package com.xxxy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xxxy.commonResult.CommonResultPage;
import com.xxxy.model.KnowledgePoint;
import com.xxxy.model.Question;
import com.xxxy.response.QuestionDetailResponse;
import com.xxxy.response.QuestionResponse;

import java.util.List;

/**
 * @author sjh
 * @date 2022/2/26 14:52
 */
public interface QuestionService extends IService<Question> {


    /**
     * 根据知识点查询试题列表
     * @param page
     * @param size
     * @param type 试题类型
     * @param knowledgePoint
     * @return
     */
    CommonResultPage listQuestion(Integer page, Integer size, Integer type, KnowledgePoint knowledgePoint);

    QuestionDetailResponse getQuestionById(Integer questionId);
}
